<?php
require_once 'Zend/Db.php';
require_once 'Zend/Db/Table.php';
require_once 'Zend/Db/Table/Abstract.php';

require_once 'config.php';

$db = Zend_Db::factory('PDO_MYSQL', Array(
										'host'		=> $config['database']['host'],
										'username'	=> $config['database']['username'],
										'password'	=> $config['database']['password'],
										'dbname'	=> $config['database']['dbname'],
									));

$db->query("SET NAMES 'utf8'");
Zend_Db_Table::setDefaultAdapter($db);
?>